<template>
    <div style="position: fixed;top: 0;left: 0;height: 100%;width: auto;background-color: #545c64;">
        <el-row class="tac">
            <el-col :span="24">
                <span class="mb-2 stroke">Notes</span>
                <el-menu active-text-color="#ffd04b" background-color="#545c64" class="el-menu-vertical-demo"
                    default-active="2" text-color="#fff" :router="true" @open="handleOpen" @close="handleClose">
                    <el-menu-item index="home">
                        <el-icon>
                            <Menu />
                        </el-icon>
                        <span>HomePage</span>
                    </el-menu-item>
                    <el-sub-menu index="">
                        <template #title>
                            <el-icon>
                                <Menu />
                            </el-icon>
                            <span>Web Notes</span>
                        </template>
                        <el-menu-item-group title="Html/Css">
                            <el-menu-item index="a">item one</el-menu-item>
                            <el-menu-item index="b">item two</el-menu-item>
                        </el-menu-item-group>
                        <el-menu-item-group title="Javascript">
                            <el-menu-item index="1-3">item three</el-menu-item>
                        </el-menu-item-group>
                        <el-sub-menu index="1-4">
                            <template #title>item four</template>
                            <el-menu-item index="1-4-1">item one</el-menu-item>
                        </el-sub-menu>
                    </el-sub-menu>
                    <el-menu-item index="3" disabled>
                        <el-icon>
                            <Menu />
                        </el-icon>
                        <span>Navigator Three</span>
                    </el-menu-item>
                </el-menu>
            </el-col>
        </el-row>
    </div>
</template>
<!-- <script lang="ts" setup>
import {
    Menu as IconMenu,
} from '@element-plus/icons-vue';
const handleOpen = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}
</script> -->
<script>
import { Menu } from '@element-plus/icons-vue';
// import { getPDFs } from '../getFiles';
// getPDFs().then((data) => console.log(data));
export default {
    data() {
        return {
            components() {
                Menu
            },
            pdfList: [],
        };
    },
    mounted() {
    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        }
    },
}
</script>
<style scoped>
.tac {
    width: 200px;
}

.el-menu-vertical-demo {
    width: 200px;
    height: 100%;
}

.mb-2 {
    color: aliceblue;
    display: block;
    background-color: #3a3f44;
    /* margin: 40px 20px; */
    width: 100%;
    line-height: 50px;
    text-align: left;
    text-indent: 20px;
    font-size: 36px;
    font-weight: bolder;
}
</style>